import { Graphics } from "pixi.js";
import { userInput } from "./User";

export abstract class Tool {
    abstract name: string;
    abstract drawStart(input: userInput): void;
    abstract drawEnd(input: userInput): void;
    abstract drawing(input: userInput): void;
    /** 笔被选中触发的函数 */
    abstract prepare(): void;
    /** 笔被取消选中触发的函数 */
    abstract closed(): void;
    abstract drawStyle(g: Graphics): void;
    abstract blend: 0 | 1;
}
